﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Database.Model.Customers>" %>
<%@ Import Namespace="CRM.AuthorizedActionLink.Extensions" %>

<% Html.DevExpress().PageControl(settings =>
                                       {
                                           settings.Name = "pcConditions";
                                         //  settings.Width = Unit.Percentage(100);
                                           settings.TabPages.Add(CRM.Resourses.Resourses.TransportConditions).SetContent(() => Html.RenderAuthorizedCustomerAction("CustomerTransportConditions", "Contracts", new { customerId = Model.IdCustomer }));
                                           settings.TabPages.Add(CRM.Resourses.Resourses.CreditConditions).SetContent(() => Html.RenderAuthorizedCustomerAction("CustomerCreditConditions", "Contracts", new { customerId = Model.IdCustomer }));
                                           settings.TabPages.Add(CRM.Resourses.Resourses.PriceConditions).SetContent(() => Html.RenderAuthorizedCustomerAction("CustomerPriceConditionsPartial", "Contracts", new { customerId = Model.IdCustomer }));
                                           settings.TabPages.Add(CRM.Resourses.Resourses.Bonuses).SetContent(() => Html.RenderAuthorizedCustomerAction("CustomerBonusPartial", "Contracts", new { customerId = Model.IdCustomer }));
                                           settings.TabPages.Add(CRM.Resourses.Resourses.AllConditions).SetContent(() => Html.RenderAuthorizedCustomerAction("AllConditionsPartial", "Contracts", new { customerId = Model.IdCustomer }));
                                       }).GetHtml();%>

